<template>
  <div class="ware_house_title_wrap">
    <div class="ware_house_title p_20">
      <h1 class="color_white f_s_56 t_a_c">仓库库位平面图</h1>
      <div class="time color_white t_a_r m_r_30">{{ showTime }}</div>
    </div>
  </div>
</template>

<script>
import DateUtils from "@/utils/date-utils"
import {DATE_YYYYMMDD_HHMMSS} from "@/utils/constants"

export default {
  name: 'WareHouseTitle',
  components: {},
  data() {
    return {
      showTime: ''
    }
  },
  computed: {},
  created() {
    const interval = setInterval(() => {
      const nowDate = DateUtils.getNowDate(DATE_YYYYMMDD_HHMMSS)
      const week = DateUtils.getNowWeek(DATE_YYYYMMDD_HHMMSS)

      this.showTime = `${nowDate}   ${week}`
    }, 1000)
  }
}
</script>

<style lang="scss" scoped>
@import "@/styles/basic.scss";

.ware_house_title_wrap {
  .ware_house_title {
    > h1 {
      background: transparent;
    }
  }
}
</style>
